package com.jiezhuo.mapper.iot;

import com.jiezhuo.dto.EquipmentDTO;
import com.jiezhuo.dto.IotSceneInfoBO;
import com.jiezhuo.dto.IotSceneInfoDTO;
import com.jiezhuo.dto.ProjectManagementDTO;
import com.jiezhuo.entity.IotHistory;
import com.jiezhuo.entity.IotSceneInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jiezhuo.entity.IotVideoInfo;
import com.jiezhuo.entity.vo.EquipmentVO;
import com.jiezhuo.entity.vo.IotSceneInfoVo;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author com.jiezhuo
 * @since 2022-10-19
 */
public interface IotSceneInfoMapper extends BaseMapper<IotSceneInfo> {

    List<IotSceneInfoVo> selectAllInfo(int id);

    List<Map<String,Object>> getSceneInfoDetails(Integer id);

    List<Map<String,Object>> video(Integer id);

    Map<String,Integer> onlineEquipment(Integer id);

    List<Map<String,Object>> equipmentDetail(Integer id);

    List<IotSceneInfo> selectIotSceneInfo(ProjectManagementDTO projectManagementDTO);

    List<Map<String,Object>> selectSceneUserRelation(Integer id);

    List<IotSceneInfo> getSceneNode();

    List<Map<String,Object>> getSceneVideo();

    Map<String,Integer> getAllData();

    List<Map<String,Object>> getSceneByNodeInfo(IotSceneInfoDTO iotSceneInfoDTO);
}
